#include <stdio.h>
void jia(int a, int b) {
	int c = a + b;
	printf("%d+%d=%d\n", a, b, c);
}
void jian(int a, int b) {
	int c = a - b;
	printf("%d-%d=%d\n", a, b, c);
}
void cheng(int a, int b) {
	int c = a * b;
	printf("%d*%d=%d\n", a, b, c);
}
void chu(int a, int b) {
	int c = a / b;
	printf("%d/%d=%d\n", a, b, c);
}
int main() {
	int a, b, d;
	printf("\t\t\t计算器\n");
	printf("\t1.加法");
	printf("\t2.减法");
	printf("\t3.乘法");
	printf("\t4.除法");
	printf("\n==============================\n");
	printf("请输入第一位数：\n");
	scanf("%d", &a);
	printf("请输入第二位数：\n");
	scanf("%d", &b);
	printf("请输入功能（1,2,3,4）\n");
	scanf("%d", &d);
	if (d == 1)jia(a, b);
	if (d == 2)jian(a, b);
	if (d == 3)cheng(a, b);
	if (d == 4)chu(a, b);
	return 0;
}